import * as z from 'zod';

export const LoginSchema = z.object({
    user_email: z.string().email({
        message: '无效电子邮件地址'
    }),
    user_password: z.string().min(1, {
        message: '密码不能为空'
    })
});

export const RegisterSchema = z.object({
    user_email: z.string().email({
        message: '无效电子邮件地址'
    }),
    user_password: z.string().min(6, {
        message: '密码至少6个字符'
    }),
    user_name: z.string().min(1, {
        message: '不能为空'
    })
});
